//
//  Definition.m
//  Lookup
//
//  Created by Mathieu on 16/07/06.
//  Copyright 2006 __MyCompanyName__. All rights reserved.
//

#import "Definition.h"


@implementation Definition

- (id) initWith:(NSString *)wordVal andDefinition:(NSString *)def  {
	self = [super init];
	if (self != nil) {
		[self setWord:wordVal];
		[self setMeaning:def];
	}
	return self;
}


- (NSString *)word {
    return [[word retain] autorelease];
}

- (void)setWord:(NSString *)value {
    if (word != value) {
        [word release];
        word = [value copy];
    }
}

- (NSString *)meaning {
    return [[meaning retain] autorelease];
}

- (void)setMeaning:(NSString *)value {
    if (meaning != value) {
        [meaning release];
        meaning = [value copy];
    }
}


@end
